package com.chen.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * @author cws
 * @since
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class MyCouponHistoryVo {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private Long couponId;

    private Long userId;

    private String couponCode;

    @ApiModelProperty(value = "领取人昵称")
    private String userNickname;

    @ApiModelProperty(value = "获取类型：0->后台赠送；1->主动获取")
    private Integer getType;

    @ApiModelProperty(value = "使用状态：0->未使用；1->已使用；2->已过期")
    private Integer useStatus;


    @ApiModelProperty(value = "优惠券类型；0->全场赠券；2->购物赠券；")
    private Integer type;

    private String name;


    @ApiModelProperty(value = "金额")
    private BigDecimal amount;

    @ApiModelProperty(value = "使用门槛；0表示无门槛")
    private BigDecimal minPoint;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime startTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime endTime;

    @ApiModelProperty(value = "使用类型：0->全场通用；1->指定地州；2->指定商品")
    private Integer useType;

    @ApiModelProperty(value = "备注")
    private String note;

//    领取列表id
    private Long  myHistoryId;
}

